$(function(){
	var res = {};
	res.data = {
		'imgUrl':sessionStorage.imgUrl,
		'payMode':sessionStorage.payMode,
		'tradeAmt':Util.GetQueryString('tradeAmt')
	}
	html = template.render("template_cont", res);
	$("#cont").html(html);
})
	var orderId = Util.GetQueryString('orderId');
	function Getdetail(){
			Public.detail({
					id: orderId
				},function(res){
					console.log(res);
					if(res.data.payStatusCode == 1 || res.data.payStatusCode == 2){
						Util.jump('orderDetails.html?orderId=' + orderId);
					}else{
						meter=setTimeout("Getdetail()", 3000);
					}
				})
			}
    Getdetail();